package com.spring.oaassist.web.form;

import java.io.Serializable;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;

import com.spring.security.core.validators.Insert;
import com.spring.security.core.validators.Update;

/**
 * Insert：早教
 * Update：托班
 * @author wojunyu
 *
 */
public class CourseForm implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@NotNull(message = "课程不可为空",groups = {Insert.class,Update.class})
	@NotEmpty(message = "课程不可为空",groups = {Insert.class,Update.class})
	private String course_open_detail_id;
	@NotNull(message = "用户不可为空",groups = {Insert.class,Update.class})
	@NotEmpty(message = "用户不可为空",groups = {Insert.class,Update.class})
	private String c_user_id;
	@NotNull(message = "课程类型不可为空",groups = {Insert.class})
	@NotEmpty(message = "课程类型不可为空",groups = {Insert.class})
	private String course_user_type_code;
	@NotNull(message = "用户名字不可为空",groups = {Insert.class,Update.class})
	@NotEmpty(message = "用户名字不可为空",groups = {Insert.class,Update.class})
	private String real_name;
//	@NotNull(message = "提醒手机号不可为空",groups = {Insert.class,Update.class})
//	@NotEmpty(message = "提醒手机号不可为空",groups = {Insert.class,Update.class})
	private String phone;
	public String getCourse_open_detail_id() {
		return course_open_detail_id;
	}
	public void setCourse_open_detail_id(String course_open_detail_id) {
		this.course_open_detail_id = course_open_detail_id;
	}
	public String getC_user_id() {
		return c_user_id;
	}
	public void setC_user_id(String c_user_id) {
		this.c_user_id = c_user_id;
	}
	public String getCourse_user_type_code() {
		return course_user_type_code;
	}
	public void setCourse_user_type_code(String course_user_type_code) {
		this.course_user_type_code = course_user_type_code;
	}
	public String getReal_name() {
		return real_name;
	}
	public void setReal_name(String real_name) {
		this.real_name = real_name;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
}
